package cn.liyao.web.repository;

import cn.liyao.web.model.FriendRecord;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface FriendRecordRepository extends JpaRepository<FriendRecord, String> {



    List<FriendRecord> findAllBySenderIdOrReceiveIdOrderByCreateAtDesc(String senderId, String receiveId);


    FriendRecord findOneBySenderIdAndReceiveIdAndState(String senderId, String receiveId , Integer state);

}